<?php

namespace app\controller;
use think\facade\Db;

use app\BaseController;
use think\facade\Cache;
use redis\Redis;

class Index extends BaseController
{
    public function index()
    {
        return '<style>*{ padding: 0; margin: 0; }</style><iframe src="https://www.thinkphp.cn/welcome?version=' . \think\facade\App::version() . '" width="100%" height="100%" frameborder="0" scrolling="auto"></iframe>';
    }

    public function hello()
    {
        //echo Db::table('zby_user')->select();
        // Cache::store('Redis')->set('key', 'valuasfase');
        // echo Cache::store('Redis')->get('key');
        Redis::getInstance()->set('name','value',3600);
        echo Redis::getInstance()->get('name');
    }
}
